import 'package:fish_redux/fish_redux.dart';

enum InstallViewAction {
  action,
  onSubmit,
  onTapPic,
  onTapAddPic,
  setOrderPhoto,
  onPayTypeTap,
  onCommunityTap,
}

class InstallViewActionCreator {
  static Action onAction() {
    return const Action(InstallViewAction.action);
  }

  static Action onTapAddPic() {
    return const Action(InstallViewAction.onTapAddPic);
  }

  static Action onTapPic(data) {
    return Action(InstallViewAction.onTapPic, payload: data);
  }

  static Action onSubmit() {
    return const Action(InstallViewAction.onSubmit);
  }

  static Action setOrderPhoto(data) {
    return Action(InstallViewAction.setOrderPhoto, payload: data);
  }

  static Action onPayTypeTap() {
    return const Action(InstallViewAction.onPayTypeTap);
  }

  static Action onCommunityTap() {
    return const Action(InstallViewAction.onCommunityTap);
  }
}
